//
//  UUPermissionConstants.h
//  UUCharterSupplier
//
//  Created by ZhangAo on 08/03/2018.
//  Copyright © 2018 UUCharter. All rights reserved.
//

#ifndef UUPermissionConstants_h
#define UUPermissionConstants_h

typedef enum : NSUInteger {
    UUPermissionRoleTypeOwner = 1,          // 所有者
    UUPermissionRoleTypeSuperAdmin,         // 超级管理员
    UUPermissionRoleTypeAdmin,              // 管理员
    UUPermissionRoleTypeFinancial,          // 财务人员
    UUPermissionRoleTypeDispatcher,         // 调度员
    UUPermissionRoleTypeProduct,            // 产品管理员
    
} UUPermissionRoleType;

typedef enum : NSUInteger {    
    // 车辆
    UUPermissionFlagCarRead         = 10,
    UUPermissionFlagCarReadWrite,
    
    // 车队
    UUPermissionFlagFleetRead       = 20,
    UUPermissionFlagFleetReadWrite,
    
    // 司机
    UUPermissionFlagDriverRead      = 30,
    UUPermissionFlagDriverReadWrite,
    
    // 管理员
    UUPermissionFlagKeeperRead      = 40,
    UUPermissionFlagKeeperReadWrite,
    
    // 产品
    UUPermissionFlagProductRead     = 50,
    UUPermissionFlagProductReadWrite,
    
    // 钱包
    UUPermissionFlagWallet          = 60,
    
    // 订单
    UUPermissionFlagOrderRead       = 70,
    UUPermissionFlagOrderReadWrite,
    
    // 公司信息
    UUPermissionFlagCompanyRead     = 80,
    UUPermissionFlagCompanyReadWrite,
    
} UUPermissionFlag;

#endif /* UUPermissionConstants_h */
